@echo off
rmdir /s /q build
rmdir /s /q dist
.venv\Scripts\pyinstaller.exe --version-file=version.txt -D -w -i icon.ico -n HDmsgbomber main.py
xcopy /Y /E /D static dist\HDmsgbomber\static\
xcopy /Y /E /D ui dist\HDmsgbomber\ui\
copy /Y icon.ico dist\HDmsgbomber
copy /Y icon.png dist\HDmsgbomber
start "D:\\Program Files (x86)\\NSIS\\makensisw.exe" setup.nsi